<!DOCTYPE html>
<html>
<head>
	<title>编辑用户</title>
	<link rel="stylesheet" type="text/css" href="/Template/admin/default/css/css.css">
</head>
<body>
<div class="content">
	<div class="curr-position">当前位置：用户管理 &gt; 编辑用户</div>
	<div class="page-top">
		<span class="fl"><a href="{{:U('admin/user/userlist')}}">返回列表</a></span>
		<span class="fr"><a href="javascript:location.reload();">刷新</a></span>
	</div>
	<form method="post" action="">
	<input type="hidden" name="id" value="{{$edit.id}}">
	<table class="data-tab">
		<thead>
			<tr>
				<th class="item">项目</th>
				<th class="data">内容</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="item">昵称</td>
				<td class="data"><input class="smallIpt" type="text" name="username" value="{{$edit.username}}"></td>				
			</tr>
			<tr>
				<td class="item">手机</td>
				<td class="data"><input class="smallIpt" type="text" name="mobile" value="{{$edit.mobile}}"></td>				
			</tr>
			<tr>
				<td class="item">性别</td>
				<td class="data"><input type="radio" name="sex" value="0" <if condition="$edit[sex] eq 0">checked="checked"</if>> 女 <input type="radio" name="sex" value="1" <if condition="$edit[sex] eq 1">checked="checked"</if>> 男</td>				
			</tr>
			<tr>
				<td class="item">区域</td>
				<td class="data"><input class="smallIpt" type="text" name="country" value="{{$edit.country}}"> <input class="smallIpt" type="text" name="province" value="{{$edit.province}}"> <input class="smallIpt" type="text" name="city" value="{{$edit.city}}"></td>	
			</tr>
			
			<tr>
				<td class="item">openid</td>
				<td class="data">{{$edit.openid|default="----"}}</td>				
			</tr>
			<tr>
				<td class="item">unionid</td>
				<td class="data">{{$edit.unionid|default="----"}}</td>				
			</tr>
			<tr>
				<td class="item">关注时间</td>
				<td class="data">{{$edit.followtime|dateFormat=full}}</td>	
			</tr>
			<tr>
				<td class="item">状态</td>
				<td class="data"><input type="radio" name="status" value="1" <if condition="$edit[status] eq 1">checked="checked"</if>> 已关注 <input type="radio" name="status" value="0" <if condition="$edit[status] eq 0">checked="checked"</if>> 已取关</td>				
			</tr>
			<tr>
				<td class="item">身份</td>
				<td class="data"><input type="radio" name="type" value="0" <if condition="$edit[type] eq 0">checked="checked"</if>> 普通用户 <input type="radio" name="type" value="1" <if condition="$edit[type] eq 1">checked="checked"</if>> 维护员 <input type="radio" name="type" value="3" <if condition="$edit[type] eq 3">checked="checked"</if>> 管理员</td>				
			</tr>
			<tr>
				<td class="item">关联</td>
				<td class="data"><input type="text" name="mid" class="smallIpt" value="{{$edit.mid}}"> 维护员填写维护员id，管理员填写管理员id，普通用户填写0</td>				
			</tr>
			<tr>
				<td class="item">&nbsp;</td>
				<td class="data"><input type="submit" class="btn" value="提 交"></td>				
			</tr>
		</tbody>
	</table>
	</form>
</div>

</body>
</html>